-- GENERATED SPELL FOR [Ango'rosh Souleater] --


function spell0_18121(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18121', 3000, 1)
end

function spell1_18121(pUnit, Event) --@Shadowform,Self--
pUnit:FullCastSpellOnTarget(35194,pUnit)
pUnit:RegisterEvent('Sorts_18121', 540, 1)
end

function spell2_18121(pUnit, Event) --@Siphon Life,Drain--
pUnit:FullCastSpellOnTarget(35195,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_18121', 12000, 1)
end

function Sorts_18121(pUnit, Event)
local choix_sorts_18121 = math.random(0, 2)
if choix_sorts_18121 == 0 then
pUnit:RegisterEvent('spell0_18121', 1, 1)
end
if choix_sorts_18121 == 1 then
pUnit:RegisterEvent('spell1_18121', 1, 1)
end
if choix_sorts_18121 == 2 then
pUnit:RegisterEvent('spell2_18121', 1, 1)
end
end

function mob18121_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18121', math.random(1500, 3000), 1)
end

function mob18121_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18121_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18121_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18121, 1, 'mob18121_Action')
RegisterUnitEvent(18121, 2, 'mob18121_Leave')
RegisterUnitEvent(18121, 3, 'mob18121_Kill')
RegisterUnitEvent(18121, 4, 'mob18121_Die')
